#include "bga/window/KeyEvent.h"

namespace bga
{

KeyEvent::KeyEvent() : bga::Event< bga::Window >(), code(Key::K_NONE)
{
}

KeyEvent::KeyEvent(const bga::Window &sender) : bga::Event< bga::Window >(sender), code(Key::K_NONE)
{
}

KeyEvent::~KeyEvent()
{
}

Key::Code KeyEvent::getKeyCode() const
{
    return this->code;
}

void KeyEvent::setKeyCode(Key::Code code)
{
    this->code = code;
}

}
